C# 클래스 Smrf.NodeXL.Adapters.SimpleGraphAdapter

Converts a graph to and from a simple two-name pair format.
The two-name format consists of one line of text per edge, where each line specifies the names of the vertices connected by the edge. This is the format of each line: Vertex1Name{tab}Vertex2Name

The delimiter is a tab, and the vertex names can consist of any Unicode characters, including leading, trailing, and embedded spaces.

This adapter can be used with directed graphs only.

상속: GraphAdapterBase, IGraphAdapter
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
StreamEncoding System.Text.Encoding

공개 메소드들

메소드 설명
AssertValid ( ) : void
SimpleGraphAdapter ( ) : System

Initializes a new instance of the SimpleGraphAdapter class.

보호된 메소드들

메소드 설명
GetSupportedDirectedness ( System.Boolean &supportsDirected, System.Boolean &supportsUndirected, System.Boolean &supportsMixed ) : void
LoadGraphCore ( Stream stream ) : IGraph
SaveGraphCore ( IGraph graph, Stream stream ) : void
VertexNameIsValid ( String sVertexName ) : System.Boolean
VertexNameToVertex ( String sVertexName, IVertexCollection oVertices, IVertex>.Dictionary oDictionary ) : IVertex
VertexToVertexName ( IVertex oVertex ) : String

메소드 상세

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

GetSupportedDirectedness() 보호된 메소드

protected GetSupportedDirectedness ( System.Boolean &supportsDirected, System.Boolean &supportsUndirected, System.Boolean &supportsMixed ) : void
supportsDirected System.Boolean
supportsUndirected System.Boolean
supportsMixed System.Boolean
리턴 void

LoadGraphCore() 보호된 메소드

protected LoadGraphCore ( Stream stream ) : IGraph
stream Stream
리턴 IGraph

SaveGraphCore() 보호된 메소드

protected SaveGraphCore ( IGraph graph, Stream stream ) : void
graph IGraph
stream Stream
리턴 void

SimpleGraphAdapter() 공개 메소드

Initializes a new instance of the SimpleGraphAdapter class.
public SimpleGraphAdapter ( ) : System
리턴 System

VertexNameIsValid() 보호된 메소드

protected VertexNameIsValid ( String sVertexName ) : System.Boolean
sVertexName String
리턴 System.Boolean

VertexNameToVertex() 보호된 메소드

protected VertexNameToVertex ( String sVertexName, IVertexCollection oVertices, IVertex>.Dictionary oDictionary ) : IVertex
sVertexName String
oVertices IVertexCollection
oDictionary IVertex>.Dictionary
리턴 IVertex

VertexToVertexName() 보호된 메소드

protected VertexToVertexName ( IVertex oVertex ) : String
oVertex IVertex
리턴 String

프로퍼티 상세

StreamEncoding 보호되어 있는 정적으로 프로퍼티

protected static Encoding,System.Text StreamEncoding
리턴 System.Text.Encoding