Edge

io.github.scala_tessella.tessella.Topology.Edge
object Edge

Companion object for Edge

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Edge.type

Members list

Value members

Concrete methods

def apply(nodes: (Node, Node)): Edge

Creates an Edge with the lesser Node first

Creates an Edge with the lesser Node first

Value parameters

nodes

Node pair

Attributes

Throws
IllegalArgumentException

if nodes are equal or with an ordinal lesser than 1

Example
Edge((Node(2), Node(1)) // 1--2
def apply(node1: Node, node2: Node): Edge

Creates an Edge from two nodes

Creates an Edge from two nodes

Attributes

def apply(nodes: Seq[Node]): Edge

Creates an Edge from the fist two nodes of a sequence

Creates an Edge from the fist two nodes of a sequence

Attributes

def toStringFromNodes(nodes: (Node, Node)): String

Creates a stringified edge from Node pair

Creates a stringified edge from Node pair

Attributes