Skip to content

Commit

Permalink
Fix typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheusthewhite committed Feb 27, 2021
1 parent 8b85444 commit a419179
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# Parallel DFS for Direct Acyclic Graphs
# Parallel DFS for Directed Acyclic Graphs

This is a C++ implementation of a parallel algorithm of the DFS traversal, according to
[this paper](https://research.nvidia.com/publication/parallel-depth-first-search-directed-acyclic-graphs).

More specifically, the algorithm is used to compute post order (pre order can
be as well computed with very minimal changes to the code) which are later used
to compute outer and inner rank, respectively defined as
- post order + 1 (e_v or outer rank)
- equal to the outer rank if the node has no children, the minimum of the outer
ranks of the children otherwise (s_v or inner rank).
to compute outer and inner rank, respectively defined as

More info (except regarding ranks) in the paper.
* post order + 1 (e_v or outer rank)
* equal to the outer rank if the node has no children, the minimum of the outer
ranks of the children otherwise (s_v or inner rank).

## Running
More info (except regarding ranks) in the paper.

## Running

For building the project use the provided `CMakeLists.txt`, with the following
commands
Expand All @@ -23,15 +24,13 @@ $ mkdir build && cd build && cmake .. && make && cp parallel-dfs-dag .. && cd ..

The program receive a file containing the initial dag with the following format

```
<number of nodes>
0: <node1> <node2> ... #
...
<number of nodes>
0: <node1> <node2> ... #
...

<nodeId>: <nodeN> <nodeM> ... #
<nodeId>: <nodeN> <nodeM> ... #

...
```
...

The initial line contains the number of nodes while all the next lines have the
same format, starting with the (numeric) node identifier (must be incremental)
Expand All @@ -40,16 +39,14 @@ points to.

For example

```
7
0: 1 2 #
1: 3 4 #
2: 4 5 #
3: #
4: 6 #
5: 6 #
6: #
```
7
0: 1 2 #
1: 3 4 #
2: 4 5 #
3: #
4: 6 #
5: 6 #
6: #

is a valid input file.

Expand Down

0 comments on commit a419179

Please sign in to comment.