Package com.jgalgo.graph
Interface IEdgeSet
-
- All Superinterfaces:
Collection<Integer>
,EdgeSet<Integer,Integer>
,IntCollection
,IntIterable
,IntSet
,Iterable<Integer>
,Set<Integer>
public interface IEdgeSet extends EdgeSet<Integer,Integer>, IntSet
Set of int graph edges.This interface is a specific version of
EdgeSet
forIntGraph
.A set of integers, each represent an edge ID in a graph
IntGraph g = ...; int vertex = ...; for (IEdgeIter eit = g.outEdges(vertex).iterator(); eit.hasNext();) { int e = eit.nextInt(); int u = eit.sourceInt(); int v = eit.targetInt(); assert vertex == u; System.out.println("Out edge of " + vertex + ": " + e + "(" + u + ", " + v + ")"); }
- Author:
- Barak Ugav
- See Also:
IEdgeIter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IEdgeIter
intIterator()
Return an edge iterator that iterate over the edges in this set.IEdgeIter
iterator()
Return an edge iterator that iterate over the edges in this set.-
Methods inherited from interface java.util.Collection
toArray
-
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection
add, addAll, contains, containsAll, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toIntArray, toIntArray
-
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterable
forEach, forEach, forEach
-
-
-
-
Method Detail
-
iterator
IEdgeIter iterator()
Return an edge iterator that iterate over the edges in this set.- Specified by:
iterator
in interfaceCollection<Integer>
- Specified by:
iterator
in interfaceEdgeSet<Integer,Integer>
- Specified by:
iterator
in interfaceIntCollection
- Specified by:
iterator
in interfaceIntIterable
- Specified by:
iterator
in interfaceIntSet
- Specified by:
iterator
in interfaceIterable<Integer>
- Specified by:
iterator
in interfaceSet<Integer>
-
intIterator
default IEdgeIter intIterator()
Return an edge iterator that iterate over the edges in this set.- Specified by:
intIterator
in interfaceIntCollection
- Specified by:
intIterator
in interfaceIntIterable
-
-