com.kuka.graph.traverse
Class GraphTraversal

java.lang.Object
  extended by com.kuka.graph.traverse.GraphTraversal

public final class GraphTraversal
extends Object

Helper class to traverse a graph.


Method Summary
static
<E> IterableGraphElements<E>
with(Iterable<E> iterable)
          Creates an iterable for iterating graph elements (nodes or edges) based on the given iterable.
static
<E> IterableGraphElements<E>
with(Iterator<E> iterator)
          Creates an iterable for iterating graph elements (nodes or edges) based on the given iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

with

public static <E> IterableGraphElements<E> with(Iterator<E> iterator)
Creates an iterable for iterating graph elements (nodes or edges) based on the given iterator.

Type Parameters:
E - the type of the graph elements
Parameters:
iterator - the iterator to use for traversing a graph
Returns:
an iterable view of the graph to traverse

with

public static <E> IterableGraphElements<E> with(Iterable<E> iterable)
Creates an iterable for iterating graph elements (nodes or edges) based on the given iterable.

Type Parameters:
E - the type of the graph elements
Parameters:
iterable - the iterable to use for traversing a graph
Returns:
an iterable view of the graph to traverse


Copyright © 2019. All rights reserved.