Skip to content

Commit

Permalink
fixes #139
Browse files Browse the repository at this point in the history
fixes issue when generating a graph with agent vertices
  • Loading branch information
ptaillandier committed Mar 29, 2024
1 parent 4dda43c commit 8f4bdb1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gama.core/src/gama/core/util/graph/GamaGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,18 @@ public GamaGraph(final IScope scope, final AbstractBaseGraph<?, DefaultEdge> gra
}
for (DefaultEdge e : graph.edgeSet()) {
Object s = graph.getEdgeSource(e);

Object t = graph.getEdgeTarget(e);

if (nodeS != null) {
if (s instanceof String) {
s = verticesAg.get(s);
}
if (t instanceof String) {
t = verticesAg.get(t);
}

}

if (edgeS == null) {
if (nodeS == null) {
Expand Down

0 comments on commit 8f4bdb1

Please sign in to comment.