public class CompactSimpleBidiGraph<EP> extends AbstractCompactSimpleGraph<CompactBidiEdge<EP>,EP> implements BidirectionalGraph<Integer,CompactBidiEdge<EP>>
SimpleGraph.NormalGraphView<N,G extends SimpleGraph<N>>
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asNormalGraph, getVisualizationHelper
adjacentTargetsIterator, adjacentTargetsStream, getAdjacentTargets, getEdgesBetween, getOutgoingEdges, getTarget, outgoingEdges, outgoingEdgesIterator, outgoingEdgesStream
getNodes, iterator, nodeIDs, nodesStream, size
adjacentTargets, createDynamicNodeMapping, createStaticNodeMapping, isConnected
forEach, spliterator
addNode, connect
public CompactSimpleBidiGraph()
public CompactSimpleBidiGraph(int initialCapacity)
public Collection<CompactBidiEdge<EP>> getIncomingEdges(Integer node)
BidirectionalGraph
getIncomingEdges
in interface BidirectionalGraph<Integer,CompactBidiEdge<EP>>
node
- the nodepublic Collection<CompactBidiEdge<EP>> getIncomingEdges(int node)
protected List<CompactBidiEdge<EP>> getInEdgeList(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>
protected CompactBidiEdge<EP> createEdge(int source, int target, EP property)
createEdge
in class AbstractCompactGraph<CompactBidiEdge<EP>,Void,EP>
Copyright © 2019. All rights reserved.