Class IndexedEdgeList

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<int[]>
org.vanted.indexednodes.IndexedEdgeList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<int[]>, Collection<int[]>, List<int[]>, RandomAccess

public class IndexedEdgeList
extends ArrayList<int[]>
A list of edges
Since:
2.8
Author:
Benjamin Moser
See Also:
Serialized Form
  • Constructor Details

    • IndexedEdgeList

      public IndexedEdgeList()
  • Method Details

    • add

      public void add​(int from, int to)
      Add an edge indicated by indices. No sanity checks are done.
      Parameters:
      from - index of source node
      to - index of target node
    • addFan

      public IndexedEdgeList addFan​(int source, IndexedNodeSet targets)
      Add edges from `source` to all nodes in `targets`.