C# Class GraphLibrary.BaseVertex

显示文件 Open project: realn0whereman/ScanGen Class Usage Examples

Public Properties

Property Type Description
visited bool

Public Methods

Method Description
AddConnection ( BaseVertex newNode, string transitionString ) : void
AddConnection ( BaseVertex newNode, string transitionString, bool accepting ) : void
AddConnection ( BaseVertex newNode, string transitionString, bool accepting, bool isCharClass ) : void
BaseVertex ( string name, bool accepting ) : System

Creates a new vertex with a given name and no connections.

CheckNodeEquality ( BaseVertex that ) : bool
RemoveConnections ( BaseVertex target ) : void

Removes all connections from this Vertex to a given target Vertex.

RemoveConnections ( Edge toRemove ) : void

Removes a specific Edge from this Vertex.

findEdgeAmongConnections ( char trans ) : List

Method Details

AddConnection() public method

public AddConnection ( BaseVertex newNode, string transitionString ) : void
newNode BaseVertex
transitionString string
return void

AddConnection() public method

public AddConnection ( BaseVertex newNode, string transitionString, bool accepting ) : void
newNode BaseVertex
transitionString string
accepting bool
return void

AddConnection() public method

public AddConnection ( BaseVertex newNode, string transitionString, bool accepting, bool isCharClass ) : void
newNode BaseVertex
transitionString string
accepting bool
isCharClass bool
return void

BaseVertex() public method

Creates a new vertex with a given name and no connections.
public BaseVertex ( string name, bool accepting ) : System
name string
accepting bool
return System

CheckNodeEquality() public method

public CheckNodeEquality ( BaseVertex that ) : bool
that BaseVertex
return bool

RemoveConnections() public method

Removes all connections from this Vertex to a given target Vertex.
public RemoveConnections ( BaseVertex target ) : void
target BaseVertex Any connections from the current Vertex to target will be removed.
return void

RemoveConnections() public method

Removes a specific Edge from this Vertex.
public RemoveConnections ( Edge toRemove ) : void
toRemove Edge Removes a specific edge from this Vertex
return void

findEdgeAmongConnections() public method

public findEdgeAmongConnections ( char trans ) : List
trans char
return List

Property Details

visited public_oe property

public bool visited
return bool