public class CompactSimpleBidiGraph<EP> extends AbstractCompactSimpleGraph<CompactBidiEdge<EP>,EP> implements BidirectionalGraph<Integer,CompactBidiEdge<EP>>
edges, size
Constructor and Description |
---|
CompactSimpleBidiGraph() |
CompactSimpleBidiGraph(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
int |
addIntNode(Void properties) |
CompactBidiEdge<EP> |
connect(int source,
int target,
EP property) |
protected CompactBidiEdge<EP> |
createEdge(int source,
int target,
EP property) |
Collection<CompactBidiEdge<EP>> |
getIncomingEdges(int node) |
Collection<CompactBidiEdge<EP>> |
getIncomingEdges(Integer node)
Retrieves the incoming edges of a given node.
|
protected List<CompactBidiEdge<EP>> |
getInEdgeList(int node) |
int |
getIntSource(CompactBidiEdge<EP> edge) |
Integer |
getSource(CompactBidiEdge<EP> edge)
Retrieves the source node of a given edge.
|
getNodeProperties, setNodeProperty
addIntNode, addNode, connect, connect, getEdgeProperty, getNode, getNodeId, getNodeProperty, getNodes, getOutEdgeList, getOutgoingEdges, getOutgoingEdges, getTarget, nodeIDs, setEdgeProperty, setNodeProperty
addNode, connect
iterator, iterator, nodeIDs, size, size
createDynamicNodeMapping, createDynamicNodeMapping, createStaticNodeMapping, createStaticNodeMapping
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDynamicNodeMapping, createStaticNodeMapping, getOutgoingEdges, getTarget
forEach, iterator, spliterator
public CompactSimpleBidiGraph()
public CompactSimpleBidiGraph(int initialCapacity)
protected List<CompactBidiEdge<EP>> getInEdgeList(int node)
protected CompactBidiEdge<EP> createEdge(int source, int target, EP property)
createEdge
in class AbstractCompactGraph<CompactBidiEdge<EP>,Void,EP>
public Collection<CompactBidiEdge<EP>> getIncomingEdges(Integer node)
BidirectionalGraph
getIncomingEdges
in interface BidirectionalGraph<Integer,CompactBidiEdge<EP>>
node
- the nodepublic Collection<CompactBidiEdge<EP>> getIncomingEdges(int node)
public Integer getSource(CompactBidiEdge<EP> edge)
BidirectionalGraph
getSource
in interface BidirectionalGraph<Integer,CompactBidiEdge<EP>>
edge
- the edgepublic int getIntSource(CompactBidiEdge<EP> edge)
public int addIntNode(Void properties)
addIntNode
in class AbstractCompactGraph<CompactBidiEdge<EP>,Void,EP>
public CompactBidiEdge<EP> connect(int source, int target, EP property)
connect
in class AbstractCompactGraph<CompactBidiEdge<EP>,Void,EP>
Copyright © 2015. All Rights Reserved.