Class GraphEdge
java.lang.Object
edu.internet2.middleware.grouper.app.graph.GraphEdge
A GraphEdge represents a directional connection between two GraphNodes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares two edges and considers them equal if the target and destination nodes are the samegets the origin node for the edgegets the VisualStyle object type enumgets the destination node for the edgeint
hashCode()
Computes the hash code based on the origin and destination nodes
-
Constructor Details
-
GraphEdge
Constructor defining a directional edge, from one node to another. Depending on the object type of either node, this will also set its VisualStyle object type enum.- Parameters:
fromNode
-toNode
-
-
GraphEdge
Constructor defining a directional edge, when the type is already known. Useful for complement factors, since the general calculations can't distinguish left and right- Parameters:
fromNode
-toNode
-styleObjecType
-
-
-
Method Details
-
equals
Compares two edges and considers them equal if the target and destination nodes are the same -
hashCode
public int hashCode()Computes the hash code based on the origin and destination nodes -
getFromNode
gets the origin node for the edge- Returns:
- origin node
-
getToNode
gets the destination node for the edge- Returns:
- destination node
-
getStyleObjectType
gets the VisualStyle object type enum- Returns:
- VisualStyle object type
-