Skip to content

Commit

Permalink
Some restructuration of the graph code.
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDutSik committed Sep 5, 2024
1 parent e8bd3fe commit 5b6ef9c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src_graph/GRAPH_CanonicComputation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ int main(int argc, char *argv[]) {
using Tgr = GraphBitset;
using Tidx = unsigned int;
//
std::ifstream GRAfs(argv[1]);
Tgr eGR = GRAPH_Read<Tgr>(GRAfs);
std::string FileGraph = argv[1];
Tgr eGR = GRAPH_ReadFile<Tgr>(FileGraph);
GRAPH_Write(std::cerr, eGR);
//
int opt;
Expand Down
4 changes: 2 additions & 2 deletions src_graph/GRAPH_ComputeAutGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ int main(int argc, char *argv[]) {
using Tgr = GraphBitset;
using Tidx = unsigned int;
//
std::ifstream GRAfs(argv[1]);
Tgr eGR = GRAPH_Read<GraphBitset>(GRAfs);
std::string FileGraph = argv[1];
Tgr eGR = GRAPH_ReadFile<GraphBitset>(FileGraph);
GRAPH_Write(std::cerr, eGR);
//
int opt;
Expand Down
4 changes: 2 additions & 2 deletions src_graph/GRAPH_EnumerateDistanceSembedding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ int main(int argc, char *argv[]) {
}
std::cerr << "Reading input\n";
//
std::ifstream GRAfs(argv[1]);
GraphBitset eGR = GRAPH_Read<GraphBitset>(GRAfs);
std::string FileGraph = argv[1];
GraphBitset eGR = GRAPH_ReadFile<GraphBitset>(FileGraph);
//
int sDist;
sscanf(argv[2], "%d", &sDist);
Expand Down
4 changes: 2 additions & 2 deletions src_graph/GRAPH_EnumerateShortCycles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ int main(int argc, char *argv[]) {
return -1;
}
//
std::ifstream GRAfs(argv[1]);
GraphBitset eGR = GRAPH_Read<GraphBitset>(GRAfs);
std::string FileGraph = argv[1];
GraphBitset eGR = GRAPH_ReadFile<GraphBitset>(FileGraph);
GRAPH_PrintOutput(std::cerr, eGR);
//
std::vector<std::vector<size_t>> ListCycles = GRAPH_FindAllCycles(eGR);
Expand Down
4 changes: 2 additions & 2 deletions src_graph/GRAPH_TestCanonicComputation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ int main(int argc, char *argv[]) {
using Tgr = GraphBitset;
using Tidx = unsigned int;
//
std::ifstream GRAfs(argv[1]);
Tgr eGR = GRAPH_Read<Tgr>(GRAfs);
std::string FileGraph = argv[1];
Tgr eGR = GRAPH_ReadFile<Tgr>(FileGraph);
GRAPH_Write(std::cerr, eGR);
//
int opt;
Expand Down

0 comments on commit 5b6ef9c

Please sign in to comment.