Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Getting vertices from default web

j3h

Joined
Jun 21, 2017
Messages
8
I've tried to figure this out for a while now. Plz help

This code
Code:
Web web = new Web();
web.addVertices(Traversal.getDefaultWeb().getVertices());

throws this exception
Code:
java.lang.UnsupportedOperationException: This operation is only supported on local navigation graphs.
	at nul.IiiiIiiIiIIII.getVertices(wpb:110)

I want to add a few things to the web, but can't figure out how to add the verticies. Directly adding to the default web throws the same error, adding to a new instance of a web works fine, but I want to use the verticies of the default web as well.
 

j3h

Joined
Jun 21, 2017
Messages
8
Well is it possible to "copy" the default web to a object that I can add stuff to? Don't really want to wait for an update just for a ladder to work..
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
Well is it possible to "copy" the default web to a object that I can add stuff to? Don't really want to wait for an update just for a ladder to work..
Make your own web using alpha web builder
 
Joined
Aug 23, 2015
Messages
1,961
Well is it possible to "copy" the default web to a object that I can add stuff to? Don't really want to wait for an update just for a ladder to work..
Nope. You can make your own web from scratch, or you can wait for the object to be added, or you can use a different navigation technique.
 
Top