Skip to content

Commit

Permalink
Mark the invalid example as invalid in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Oct 22, 2015
1 parent 52add1c commit 11b6b31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Creates a new `Graph` object. Creates a null, directed graph when `definition` i

Any vertex ids that are only specified only in `to`, `from`, `neighbors` fields, or an edge `pair` will cause those vertices to be created in the graph without any `labels` or `data`. The same edge may not be specified in a graph definition twice. For example, the following definition is invalid because the edge between `a` and `b` is specified twice,
```js
// Invalid
var graph = new Graph({
vertices: {
a: { to: ['b'] },
Expand Down

0 comments on commit 11b6b31

Please sign in to comment.