mirror of https://gitee.com/bigwinds/arangodb
added comments
This commit is contained in:
parent
a0ff62ebe5
commit
95a42b9245
|
@ -794,6 +794,7 @@ function Graph (name, vertices, edges) {
|
||||||
// gdb.ensureUniqueConstraint("name");
|
// gdb.ensureUniqueConstraint("name");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @FUN{Graph(@FA{name})}
|
||||||
if (vertices === undefined && edges == undefined) {
|
if (vertices === undefined && edges == undefined) {
|
||||||
props = gdb.firstExample('name', name);
|
props = gdb.firstExample('name', name);
|
||||||
|
|
||||||
|
@ -813,6 +814,8 @@ function Graph (name, vertices, edges) {
|
||||||
throw "edge collection '" + props.edges + "' has vanished";
|
throw "edge collection '" + props.edges + "' has vanished";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @FUN{Graph(@FA{name}, @FA{vertices}, @FA{edges})}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
// get the vertices collection
|
// get the vertices collection
|
||||||
|
|
Loading…
Reference in New Issue