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

#include <KONECTGraphReader.h>

Public Member Functions

 KONECTGraphReader ()=default
 
 KONECTGraphReader (char separator, bool ignoreLoops=false)
 
Graph read (const std::string &path)
 Given the path of an input file, read the graph contained. More...
 
- Public Member Functions inherited from NetworKit::GraphReader
virtual ~GraphReader ()=default
 

Protected Attributes

char separator
 character separating nodes in an edge line More...
 
std::string commentPrefix
 
node firstNode
 
bool continuous
 
bool ignoreLoops
 

Constructor & Destructor Documentation

NetworKit::KONECTGraphReader::KONECTGraphReader ( )
default
NetworKit::KONECTGraphReader::KONECTGraphReader ( char  separator,
bool  ignoreLoops = false 
)
Parameters
[in]ignoreLoopsignores loops in the input graph file, if set to true
[in]separatorcharacter used to separate values of a line

Member Function Documentation

Graph NetworKit::KONECTGraphReader::read ( const std::string &  path)
virtual

Given the path of an input file, read the graph contained.

Parameters
[in]pathinput file path

Implements NetworKit::GraphReader.

Member Data Documentation

std::string NetworKit::KONECTGraphReader::commentPrefix
protected
bool NetworKit::KONECTGraphReader::continuous
protected
node NetworKit::KONECTGraphReader::firstNode
protected
bool NetworKit::KONECTGraphReader::ignoreLoops
protected
char NetworKit::KONECTGraphReader::separator
protected

character separating nodes in an edge line


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