Triangle counting using liblemon
io.h
Go to the documentation of this file.
1 // Copyright 2019 zhaofeng-shu33
2 #pragma once
3 #include <vector>
7 #include <utility>
8 
9 #include "lemontc/config.h"
10 
11 namespace lemon {
13  void construct_graph_from_arclist(Graph* G,
14  const std::vector<std::pair<int, int> >& arcs, int node_size);
16  std::pair<int, int> read_binfile_to_arclist(const char* file_name,
17  std::vector<std::pair<int, int>>* arcs);
18 }
configuration lemon triangle counter configuration header
void construct_graph_from_arclist(Graph *G, const std::vector< std::pair< int, int > > &arcs, int node_size)
construct the static graph from given arc list
Definition: io.cpp:89
lemon original namespace
std::pair< int, int > read_binfile_to_arclist(const char *file_name, std::vector< std::pair< int, int >> *arcs_pointer)
read the binary graph file and initialize the arcs data structure
Definition: io.cpp:35