Class Graph
java.lang.Object
cz.metacentrum.perun.utils.graphs.Graph
- Author:
- Vojtech Sassmann invalid input: '<'vojtech.sassmann@gmail.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
createEdge
(Node source, Node target, GraphEdge.Type type) boolean
getComponentNodes
(Node node) Find nodes that belong to component for given node.getEdges()
getNodes()
int
hashCode()
void
removeEdge
(GraphEdge edge) void
removeNode
(Node node) void
removeNodes
(Set<Node> nodes)
-
Constructor Details
-
Graph
public Graph()
-
-
Method Details
-
addNode
-
addNodes
-
createEdge
-
equals
-
getComponentNodes
Find nodes that belong to component for given node.- Parameters:
node
- node- Returns:
- Set of nodes that belong to the same component as given Node.
-
getEdges
-
getNodes
-
hashCode
public int hashCode() -
removeEdge
-
removeNode
-
removeNodes
-