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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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