All Downloads are FREE. Search and download functionalities are using the official Maven repository.

overflowdb.traversal.EdgeTraversal.scala Maven / Gradle / Ivy

package overflowdb.traversal

import overflowdb.{Node, Edge}

class EdgeTraversal[E <: Edge](val traversal: Iterator[E]) extends AnyVal {

  /** traverse to outgoing node A ---edge--> [B]
    */
  def outV: Iterator[Node] =
    traversal.map(_.outNode)

  /** traverse to incoming node [A] ---edge--> B
    */
  def inV: Iterator[Node] =
    traversal.map(_.inNode)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy