SetEdgeSelected
(
IEdge edge,
Boolean selected,
Boolean alsoAdjacentVertices
)
{
AssertValid();
const String MethodName = "SetEdgeSelected";
this.ArgumentChecker.CheckArgumentNotNull(MethodName, "edge", edge);
CheckIfLayingOutGraph(MethodName);
// Update the selected state of the edge and its adjacent vertices.
SetEdgeSelectedInternal(edge, selected);
if (alsoAdjacentVertices)
{
SetVertexSelectedInternal(edge.Vertices[0], selected);
SetVertexSelectedInternal(edge.Vertices[1], selected);
}
FireSelectionChanged();
}