Skip to content

Commit

Permalink
Update documentation (#22)
Browse files Browse the repository at this point in the history
* Update documentation

* Update documentation with links
  • Loading branch information
j6k4m8 committed Feb 6, 2019
1 parent 9b998be commit d5c9513
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 207 deletions.
14 changes: 0 additions & 14 deletions Pipfile

This file was deleted.

147 changes: 0 additions & 147 deletions Pipfile.lock

This file was deleted.

75 changes: 41 additions & 34 deletions docs/Language-Spec.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,12 @@
# v1.0 (October 23, 2018)
# Current version: v2.1 (February 6, 2019)

```
S -> T
T -> nERn | TDT | c | ε
R -> > | + | ~ | ?
E -> - | ! | ?
D -> ; | \n
n -> /\S+/
c -> /\#.*/
```

For example, the following notates that nodes `α`, `β`, and `γ` form a triangle:

```
α -> β
β -> γ
γ -> α
```

This example demonstrates that `α`, `β`, `γ`, and `λ` form a directed 4-cycle with no diagonals:

```
# Directed 4-cycle:
α -> β
β -> γ
γ -> λ
λ -> α
# No diagonals:
α !> γ
γ !> α
β !> λ
λ !> β
```

Note that comments, prefixed with a `#` character, are valid syntax.
# Older versions


# v2.0 (Under Development)
## v2.0

```
// See Extended Backus-Naur Form for more details.
Expand Down Expand Up @@ -167,3 +136,41 @@ unidirectionalTriangle(x, y, z) {
unidirectionalTriangle(A, B, C)
unidirectionalTriangle(C, D, E)
```

## v1.0 (October 23, 2018)

```
S -> T
T -> nERn | TDT | c | ε
R -> > | + | ~ | ?
E -> - | ! | ?
D -> ; | \n
n -> /\S+/
c -> /\#.*/
```

For example, the following notates that nodes `α`, `β`, and `γ` form a triangle:

```
α -> β
β -> γ
γ -> α
```

This example demonstrates that `α`, `β`, `γ`, and `λ` form a directed 4-cycle with no diagonals:

```
# Directed 4-cycle:
α -> β
β -> γ
γ -> λ
λ -> α
# No diagonals:
α !> γ
γ !> α
β !> λ
λ !> β
```

Note that comments, prefixed with a `#` character, are valid syntax.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
* [Installing dotmotif](installation)
* [Getting started](start)
* [Usage](usage)
* [Constraints](attributes)
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ git clone https://https://github.com/aplbrain/dotmotif/
cd dotmotif
```

You can most easily install dotmotif with pipenv:
You can most easily install dotmotif with pip:

```shell
pipenv install
pip3 install -U .
```

2 changes: 2 additions & 0 deletions docs/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,5 @@ dotmotif.dotmotif(validators=[]).from_motif(m)
```

This empty list overrides the default list of validators, which includes a built-in `DisagreeingEdgesValidator`. It's not recommended that you do this — but it is _possible_.

Learn more about motif constraints [here](attributes.md).
11 changes: 1 addition & 10 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,4 @@ You can chain the entire operation into one single command using the chaining fu
dm = dotmotif().from_motif("threecycle.motif").to_cypher()
```

----

```
docker run -e NEO4J_AUTH=neo4j1/neo4j1 -p 7474:7474 -p 7687:7687 -v $(pwd)/import:/_import_csv --volume=$(pwd)/data:/data neo4j:3.4 /bin/bash
docker run -e NEO4J_AUTH=neo4j1/neo4j1 -p 7474:7474 -p 7687:7687 -v $(pwd)/import:/_import_csv neo4j:3.4 /bin/bash
./bin/neo4j-admin import --id-type STRING --nodes:Neuron /_import_csv/neurons.csv --relationships:SYN /_import_csv/synapses.csv && neo4j start
```
Learn more about motif constraints [here](attributes.md).

0 comments on commit d5c9513

Please sign in to comment.