Friday, 17 August 2007

User Data in Jung

There are two ways to associate data with graphs, edges or vertices.

1st. Class Extension, creating a class that extends one of the Graph, Vertice or Edge implementations.

2nd. Jung Annotation, using the existing built-in mechanism (the UserData class) for annotating graph elements with data. Several methods are used to manipulate these data.

I think that the first way is more appropriate for the needs of my project.

0 comments: