Skip to content

Commit

Permalink
fixes a test on graph
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaillandier committed Jun 29, 2021
1 parent 5b29ea0 commit dbd1af2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions msi.gama.core/tests/Basic Tests/models/GraphTest.experiment
Expand Up @@ -18,7 +18,7 @@ global {
location<-{i,i + ( (i/10) mod 2)*10};
i<-i+10;
}
the_graph <- as_distance_graph(node_agent, 30.0);


}

Expand Down Expand Up @@ -58,11 +58,14 @@ experiment GraphTest type: test autorun: true {
}

test "My Graph Test" {

write the_graph;

the_graph <- directed(as_distance_graph(node_agent, 30.0));

write "DIRECTED:" + the_graph;

write (node_agent[2]);

write ("Degrees");

write(the_graph in_degree_of (node_agent[2]));
write(the_graph out_degree_of (node_agent[2]));
write(the_graph degree_of (node_agent[2]));
Expand Down

0 comments on commit dbd1af2

Please sign in to comment.