public class GraphEdge extends Object
Constructor and Description |
---|
GraphEdge(GraphNode fromNode,
GraphNode toNode)
Constructor defining a directional edge, from one node to another.
|
GraphEdge(GraphNode fromNode,
GraphNode toNode,
StyleObjectType styleObjecType)
Constructor defining a directional edge, when the type is already known.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares two edges and considers them equal if the target and destination
nodes are the same
|
GraphNode |
getFromNode()
gets the origin node for the edge
|
StyleObjectType |
getStyleObjectType()
gets the VisualStyle object type enum
|
GraphNode |
getToNode()
gets the destination node for the edge
|
int |
hashCode()
Computes the hash code based on the origin and destination nodes
|
public GraphEdge(GraphNode fromNode, GraphNode toNode)
fromNode
- toNode
- public GraphEdge(GraphNode fromNode, GraphNode toNode, StyleObjectType styleObjecType)
fromNode
- toNode
- styleObjecType
- public boolean equals(Object obj)
public int hashCode()
public GraphNode getFromNode()
public GraphNode getToNode()
public StyleObjectType getStyleObjectType()
Copyright © 2016 Internet2. All rights reserved.