C# Класс GraphLibrary.BaseVertex

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
visited bool

Открытые методы

Метод Описание
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

Описание методов

AddConnection() публичный Метод

public AddConnection ( BaseVertex newNode, string transitionString ) : void
newNode BaseVertex
transitionString string
Результат void

AddConnection() публичный Метод

public AddConnection ( BaseVertex newNode, string transitionString, bool accepting ) : void
newNode BaseVertex
transitionString string
accepting bool
Результат void

AddConnection() публичный Метод

public AddConnection ( BaseVertex newNode, string transitionString, bool accepting, bool isCharClass ) : void
newNode BaseVertex
transitionString string
accepting bool
isCharClass bool
Результат void

BaseVertex() публичный Метод

Creates a new vertex with a given name and no connections.
public BaseVertex ( string name, bool accepting ) : System
name string
accepting bool
Результат System

CheckNodeEquality() публичный Метод

public CheckNodeEquality ( BaseVertex that ) : bool
that BaseVertex
Результат bool

RemoveConnections() публичный Метод

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.
Результат void

RemoveConnections() публичный Метод

Removes a specific Edge from this Vertex.
public RemoveConnections ( Edge toRemove ) : void
toRemove Edge Removes a specific edge from this Vertex
Результат void

findEdgeAmongConnections() публичный Метод

public findEdgeAmongConnections ( char trans ) : List
trans char
Результат List

Описание свойств

visited публичное свойство

public bool visited
Результат bool