Sage Modeling and Simulation Library

Edge..::..Connect Method

Creates a direct connection between the from vertex and the to vertex, if one does not already exist.

Namespace:  Highpoint.Sage.Graphs
Assembly:  Sage4 (in Sage4.dll)

Syntax


public static Edge Connect(
	Vertex from,
	Vertex to
)

Parameters

from
Type: Highpoint.Sage.Graphs..::..Vertex
The vertex that is to become the preVertex of the new edge.
to
Type: Highpoint.Sage.Graphs..::..Vertex
The vertex that is to become the postVertex of the new edge.

Return Value

The edge that joins the two vertices.