org.eclipse.incquery.runtime.base.itc.igraph

## Interface IBiDirectionalGraphDataSource<V>

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

      public interface IBiDirectionalGraphDataSource<V>
      extends IGraphDataSource<V>

  This interface extends the functionality of IGraphDataSource with an extra method. One can query the source nodes of those edges which have a given target node.
  Author:
    Tamas Szabo

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<V>` | `getSourceNodes(V target)` Returns the source nodes of those edges that end in target.

    - ### Methods inherited from interface org.eclipse.incquery.runtime.base.itc.igraph.IGraphDataSource

      `attachObserver, detachObserver, getAllNodes, getTargetNodes`

- - ### Method Detail

    - #### getSourceNodes

          java.util.List<V> getSourceNodes(V target)

      Returns the source nodes of those edges that end in target. The nodes are returned as a `List` as multiple edges can be present between two arbitrary nodes. If no such node can be found than the method should return null.
      Parameters:
        `target` - the target node
      Returns:
        the list of source nodes or null if no sources can be found