Package org.vanted.indexednodes
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 Summary
Constructors Constructor Description IndexedEdgeList()
-
Method Summary
Modifier and Type Method Description void
add(int from, int to)
Add an edge indicated by indices.IndexedEdgeList
addFan(int source, IndexedNodeSet targets)
Add edges from `source` to all nodes in `targets`.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
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 nodeto
- index of target node
-
addFan
Add edges from `source` to all nodes in `targets`.
-