From 8233269c1c34bcaa38237ddac73ca8b074dc764a Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sat, 11 Feb 2017 11:04:44 +0100 Subject: Update README --- README.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e1930b..2f36788 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,37 @@ # Brandes's Algorithm -## Running +## Building mkdir build cd build cmake .. make + +## Running + + ./brandes + +### Graph representation + +This implementation expects a simple, directed, unweighted graph with vertices +labeled with integers. + +Sample input file: + + 0 2 + 2 0 + 2 3 + 2 4 + 3 2 + 3 5 + 3 6 + +Here each line represents a directed edge from the first node to the second. + +The output will contain a line for each node with at least one out edge, of the +form ` `. Thus for the above sample input, the output file +should contain: + + 0 0 + 2 6 + 3 4 -- cgit v1.2.3