Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 0 additions & 77 deletions CMakeLists.txt

This file was deleted.

27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,29 @@ To build:

To run (in build):

./simple -gf saarland.gl
./simple -gf resources/test.gl

gl format:

```
number of nodes
number of edges
X Y of node1
...
X Y of nodeN
nodeFrom nodeTo width color
...
nodeFrom nodeTo width color
```

Example:

Two nodes: node0 (1, 1) and node1 (2, 2). One arc (node0, node1) of 1px width with color 1

```
2
1
1 1
2 2
0 1 1 2
```
12 changes: 7 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/sh
mkdir build
cd build
cmake ../
make
#!/bin/bash

cd src

g++ -W -Wall --std=c++11 simplestGraphRendering.cpp -o simplestGraphRendering -lGL -lglut -lm -lX11 -lglfw -lGLEW

./simplestGraphRendering -gf ../resources/test.gl
11 changes: 11 additions & 0 deletions resources/test.gl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
4
4
1 1
2 2
1 2
2 5
0 1 10 1
0 2 10 2
0 3 10 3
3 4 10 4

1 change: 1 addition & 0 deletions src/simplestGraphRendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <memory>
#include <map>
#include <list>
#include <cmath>

typedef unsigned int uint;

Expand Down
Loading