-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathio.hpp
More file actions
31 lines (20 loc) · 691 Bytes
/
io.hpp
File metadata and controls
31 lines (20 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <vector>
#include <fstream>
#include <iostream>
#include <string>
#include <algorithm>
#include <sstream>
#include <set>
#include "graph.hpp"
using namespace std;
#ifndef IO_HPP
#define IO_HPP
// Loads a graph from nodes and vertices
Graph<Node> load_graph (ifstream & verticies, ifstream & edges);
// Loads a meta graph from the associated graph
Graph<Component> load_meta (Graph<Node> & graph);
// Writes the components.csv file
void save_components (Graph<Component> & metaGraph, ifstream & nodes, ofstream & componentStream);
// Writes the metaEdges.csv and metaNodes.csv files
void save_meta (Graph<Component> & metaGraph, ofstream & nodes, ofstream & edges);
#endif