Description
This may be a non-issue (need to check), but we currently do this in every Graph (and GraphComputer) class.
static {
TraversalStrategies.GlobalCache.registerStrategies(TinkerGraph.class, TraversalStrategies.GlobalCache.getStrategies(Graph.class).clone().addStrategies(TinkerGraphStepStrategy.instance()));
}
If this static code is loaded every time a Graph instance is created, then manually tweaked strategy registrations get overwritten. If this is the case, then we should do:
static { TraversalStrategies.GlobalCache.registerStrategiesIfNotPresent(TinkerGraph.class,TraversalStrategies.GlobalCache.getStrategies(Graph.class).clone().addStrategies(TinkerGraphStepStrategy.instance())); }
That is, add a registerIfNotPresent() method.
Attachments
Issue Links
- links to