Table of Contents

Class AddEdgeCommand

Namespace
FlowGraph.Core.Commands
Assembly
FlowGraph.Core.dll

Command to add an edge to the graph.

public class AddEdgeCommand : IGraphCommand
Inheritance
AddEdgeCommand
Implements
Inherited Members

Constructors

AddEdgeCommand(Graph, Edge)

public AddEdgeCommand(Graph graph, Edge edge)

Parameters

graph Graph
edge Edge

Properties

Description

Gets a human-readable description of the command.

public string Description { get; }

Property Value

string

Methods

Execute()

Executes the command.

public void Execute()

Undo()

Reverses the command (undo).

public void Undo()