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

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

There is a newer version: 1.193
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy