All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
NetworKit::EdgeListPartitionReader Class Reference

#include <EdgeListPartitionReader.h>

Public Member Functions

 EdgeListPartitionReader (node firstNode=1, char sepChar='\t')
 Constructs the EdgeListPartitionReader class with firstNode as the index of the first node in the file. More...
 
virtual Partition read (std::string path)
 Read a clustering from a file. More...
 

Public Attributes

node firstNode
 
char sepChar
 

Constructor & Destructor Documentation

NetworKit::EdgeListPartitionReader::EdgeListPartitionReader ( node  firstNode = 1,
char  sepChar = '\t' 
)

Constructs the EdgeListPartitionReader class with firstNode as the index of the first node in the file.

Parameters
[in]firstNodeIndex of the first node in the file.
[in]sepCharThe separator between two elements

Member Function Documentation

Partition NetworKit::EdgeListPartitionReader::read ( std::string  path)
virtual

Read a clustering from a file.

File format: A list of the nodes and their membership (memberships are labelled by integer numbers >=1).

Parameters
[in]pathPath to file.
Returns
The clustering contained in the file at path.

Member Data Documentation

node NetworKit::EdgeListPartitionReader::firstNode
char NetworKit::EdgeListPartitionReader::sepChar

The documentation for this class was generated from the following files: