Interface IBiDirectionalGraphDataSource<V>
- Type Parameters:
V
- the type of the nodes in the graph
- All Superinterfaces:
IGraphDataSource<V>
- All Known Implementing Classes:
Graph
,IBiDirectionalWrapper
A bi-directional graph data source supports all operations that an
IGraphDataSource
does, but it
also makes it possible to query the incoming edges of nodes, not only the outgoing edges.-
Method Summary
Modifier and TypeMethodDescriptiongetSourceNodes
(V target) Returns the source nodes for the given target node.Methods inherited from interface tools.refinery.interpreter.rete.itc.igraph.IGraphDataSource
attachAsFirstObserver, attachObserver, detachObserver, getAllNodes, getTargetNodes
-
Method Details
-
getSourceNodes
Returns the source nodes for the given target node. The returned data structure is anIMultiset
because of potential parallel edges in the graph data source. The method must not return null.- Parameters:
target
- the target node- Returns:
- the multiset of source nodes
- Since:
- 2.0
-