Class GraphDefinition<T>

java.lang.Object
cz.metacentrum.perun.utils.graphs.generators.GraphDefinition<T>

public class GraphDefinition<T> extends Object
Class that defines relations in graph.

New relations can be added with method 'addEntitiesData' where the expected format is a Map of GraphDefinition entities where every entity has a Set of target entities. In other words, there is an oriented Edge between enetity and its target entities. After specifying entities data, you have to set edge type with method 'withEdgeType'.

Example: graphDefinition.addEntitiesData(data).withEdgeType(GraphEdge.Type.BOLD);

New relations can also be added with method 'addEntity'. After specifying the entity, you have to set target entities with method 'withTargetEntities'. After that you must set the graph edge type.

Example: graphDefinition.addEntity(entity).withTargetEntities(targetEntities).withEdgeType(GraphEdge.Type.BOLD);

Author:
Vojtech Sassmann invalid input: '<'vojtech.sassmann@gmail.com>