Comuna.NET - A community analysis, tracking and graphing library for social networks written in C#
NetworkLoadFromCsv Method |
Creates a new Network by reading the edge information stored in the given CSV (comma-separated
values) file.
The format is 'source_node, target_node [, weight]'. If not provided, weight of the edge is considered to be 1.
Namespace: Comuna
Assembly: Comuna (in Comuna.dll) Version: 1.0.0
Syntax
C#
public static Network LoadFromCsv( string filePath, char sepChar = ',' )
Parameters
- filePath
- Type: SystemString
The path to the CSV file containing the network information. - sepChar (Optional)
- Type: SystemChar
The character used to separate each field in the file.
Return Value
Type: NetworkA new network according to the information in the given file, or null if no information could be read.
See Also