1
0
Fork 0

added comments

This commit is contained in:
Frank Celler 2012-04-24 12:15:35 +02:00
parent a0ff62ebe5
commit 95a42b9245
1 changed files with 4 additions and 1 deletions

View File

@ -793,7 +793,8 @@ function Graph (name, vertices, edges) {
// gdb.ensureUniqueConstraint("name");
}
// @FUN{Graph(@FA{name})}
if (vertices === undefined && edges == undefined) {
props = gdb.firstExample('name', name);
@ -813,6 +814,8 @@ function Graph (name, vertices, edges) {
throw "edge collection '" + props.edges + "' has vanished";
}
}
// @FUN{Graph(@FA{name}, @FA{vertices}, @FA{edges})}
else {
// get the vertices collection