C# 클래스 CodingPractice.Graph.WeightedGraph

상속: IWeightedGraph
파일 보기 프로젝트 열기: cabhishek/algorithms-datastructures 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
NULL_EDGE int

공개 메소드들

메소드 설명
WeightedGraph ( ) : System.Collections
WeightedGraph ( int maxV ) : System.Collections
addEdge ( object fromVertex, object toVertex, int weight ) : void

Edge(from vertex, to vertex) is stored in edges

addVertex ( object vertex ) : void

vertex has been stored in vertices.

clearMarks ( ) : void

sets marks for all vertices to false

getToVertices ( object vertex ) : Queue

returns a queue of the vertices that are adjacent from vertex

isEmpty ( ) : bool
isFull ( ) : bool
isMarked ( object vertex ) : bool

determines if vertex has been marked or not

markVertex ( object vertex ) : void

sets mark for vertex to true

weightIs ( object fromVertex, object toVertex ) : int

returns weight associated with the edge

비공개 메소드들

메소드 설명
indexIs ( object vertex ) : int

returns index of vertex in vertices

메소드 상세

WeightedGraph() 공개 메소드

public WeightedGraph ( ) : System.Collections
리턴 System.Collections

WeightedGraph() 공개 메소드

public WeightedGraph ( int maxV ) : System.Collections
maxV int
리턴 System.Collections

addEdge() 공개 메소드

Edge(from vertex, to vertex) is stored in edges
public addEdge ( object fromVertex, object toVertex, int weight ) : void
fromVertex object
toVertex object
weight int
리턴 void

addVertex() 공개 메소드

vertex has been stored in vertices.
public addVertex ( object vertex ) : void
vertex object
리턴 void

clearMarks() 공개 메소드

sets marks for all vertices to false
public clearMarks ( ) : void
리턴 void

getToVertices() 공개 메소드

returns a queue of the vertices that are adjacent from vertex
public getToVertices ( object vertex ) : Queue
vertex object
리턴 System.Collections.Queue

isEmpty() 공개 메소드

public isEmpty ( ) : bool
리턴 bool

isFull() 공개 메소드

public isFull ( ) : bool
리턴 bool

isMarked() 공개 메소드

determines if vertex has been marked or not
public isMarked ( object vertex ) : bool
vertex object
리턴 bool

markVertex() 공개 메소드

sets mark for vertex to true
public markVertex ( object vertex ) : void
vertex object
리턴 void

weightIs() 공개 메소드

returns weight associated with the edge
public weightIs ( object fromVertex, object toVertex ) : int
fromVertex object
toVertex object
리턴 int

프로퍼티 상세

NULL_EDGE 공개적으로 정적으로 프로퍼티

public static int NULL_EDGE
리턴 int