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

Converts a graph to and from a UCINET full matrix DL file.
Use the LoadGraph(String, GraphDirectedness) overload instead of one of the base-class overloads so that the directedness of the UCINET file being loaded can be specified.

Before calling GraphAdapterBase.SaveGraph(IGraph, String), duplicate edges must be merged and the results stored in the value on each vertex.

The only file format supported is the UCINET full matrix DL file, as exported by UCINET version 6.223. The file looks like this:

DL N=11 FORMAT = FULLMATRIX DIAGONAL PRESENT ROW LABELS: "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" COLUMN LABELS: "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" DATA: 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0
상속: GraphAdapterBase, IGraphAdapter
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
StreamEncoding Encoding
m_eLoadedGraphDirectedness GraphDirectedness

공개 메소드들

메소드 설명
AssertValid ( ) : void
LoadGraph ( String filename, GraphDirectedness fileDirectedness ) : IGraph
UcinetGraphAdapter ( ) : System

Initializes a new instance of the UcinetGraphAdapter class.

보호된 메소드들

메소드 설명
AddLoadedVertex ( String sVertexName, IVertexCollection oVertices, IVertex>.Dictionary oVertexDictionary ) : void
GetSupportedDirectedness ( Boolean &supportsDirected, Boolean &supportsUndirected, Boolean &supportsMixed ) : void
LoadGraphCore ( Stream stream ) : IGraph
LoadGraphEdges ( IGraph oGraph, StreamReader oStreamReader, IVertex>.Dictionary oVertexDictionary, Int32 &iLineNumber ) : void
SaveGraphCore ( IGraph graph, Stream stream ) : void

메소드 상세

AddLoadedVertex() 보호된 메소드

protected AddLoadedVertex ( String sVertexName, IVertexCollection oVertices, IVertex>.Dictionary oVertexDictionary ) : void
sVertexName String
oVertices IVertexCollection
oVertexDictionary IVertex>.Dictionary
리턴 void

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

GetSupportedDirectedness() 보호된 메소드

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

LoadGraph() 공개 메소드

public LoadGraph ( String filename, GraphDirectedness fileDirectedness ) : IGraph
filename String
fileDirectedness GraphDirectedness
리턴 IGraph

LoadGraphCore() 보호된 메소드

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

LoadGraphEdges() 보호된 메소드

protected LoadGraphEdges ( IGraph oGraph, StreamReader oStreamReader, IVertex>.Dictionary oVertexDictionary, Int32 &iLineNumber ) : void
oGraph IGraph
oStreamReader StreamReader
oVertexDictionary IVertex>.Dictionary
iLineNumber Int32
리턴 void

SaveGraphCore() 보호된 메소드

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

UcinetGraphAdapter() 공개 메소드

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

프로퍼티 상세

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

protected static Encoding StreamEncoding
리턴 Encoding

m_eLoadedGraphDirectedness 보호되어 있는 프로퍼티

protected GraphDirectedness m_eLoadedGraphDirectedness
리턴 GraphDirectedness