C# 클래스 Clusterizator.Krab.GraphManager

Class representing graph of connected nodes.
파일 보기 프로젝트 열기: intervals-mining-lab/libiada-core 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Connections List
Elements List

공개 메소드들

메소드 설명
Clone ( ) : GraphManager

Method creates copy of graph.

Connect ( int firstIndex, int secondIndex ) : void

Nodes connection method.

ConnectGraph ( ) : void

Method is connecting nodes into "shortest unclosed path" (snp).

Cut ( Connection connection ) : void

Removes given connection between given nodes. Also renumbers groups emerging as result of disconnection.

Cut ( GraphElement firstElement, GraphElement secondElement ) : void

Removes connection between given nodes. Also renumbers groups emerging as result of disconnection.

GetNextTaxonNumber ( ) : int

Calculates number of new group.

GraphManager ( List connections, List elements ) : System.Collections.Generic

Initializes a new instance of the GraphManager class.

SearchConnection ( GraphElement firstElement, GraphElement secondElement ) : int

Searches connection index for pair of nodes.

비공개 메소드들

메소드 설명
Renumber ( int index, int newNumber ) : void

Recursive method for renumeration of connected graph nodes.

SearchConnection ( int index1, int index2 ) : int

Connection search by nodes indexes.

메소드 상세

Clone() 공개 메소드

Method creates copy of graph.
public Clone ( ) : GraphManager
리턴 GraphManager

Connect() 공개 메소드

Nodes connection method.
public Connect ( int firstIndex, int secondIndex ) : void
firstIndex int /// First node index. ///
secondIndex int /// Second node index. ///
리턴 void

ConnectGraph() 공개 메소드

Method is connecting nodes into "shortest unclosed path" (snp).
public ConnectGraph ( ) : void
리턴 void

Cut() 공개 메소드

Removes given connection between given nodes. Also renumbers groups emerging as result of disconnection.
public Cut ( Connection connection ) : void
connection Connection /// Connected nodes pair. ///
리턴 void

Cut() 공개 메소드

Removes connection between given nodes. Also renumbers groups emerging as result of disconnection.
public Cut ( GraphElement firstElement, GraphElement secondElement ) : void
firstElement GraphElement /// First node. ///
secondElement GraphElement /// Second node. ///
리턴 void

GetNextTaxonNumber() 공개 메소드

Calculates number of new group.
public GetNextTaxonNumber ( ) : int
리턴 int

GraphManager() 공개 메소드

Initializes a new instance of the GraphManager class.
public GraphManager ( List connections, List elements ) : System.Collections.Generic
connections List /// The connections. ///
elements List /// The elements. ///
리턴 System.Collections.Generic

SearchConnection() 공개 메소드

Searches connection index for pair of nodes.
public SearchConnection ( GraphElement firstElement, GraphElement secondElement ) : int
firstElement GraphElement /// First node. ///
secondElement GraphElement /// Second node. ///
리턴 int

프로퍼티 상세

Connections 공개적으로 프로퍼티

Nodes connections in graph.
public List Connections
리턴 List

Elements 공개적으로 프로퍼티

Nodes of graph.
public List Elements
리턴 List