Interface IBiDirectionalGraphDataSource<V>

Type Parameters:
V - the type of the nodes in the graph
All Superinterfaces:
IGraphDataSource<V>
All Known Implementing Classes:
Graph, IBiDirectionalWrapper

public interface IBiDirectionalGraphDataSource<V> extends IGraphDataSource<V>
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 Details

    • getSourceNodes

      IMemoryView<V> getSourceNodes(V target)
      Returns the source nodes for the given target node. The returned data structure is an IMultiset 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