Note
You have to include the header Graph.h.
Graph
This class represents a project Graph in Instant Terra.
Error − In any of
these commands, if the communication is off, the following error
code will be reported ErrorCode::CommunicationError
.
// Get graph of the default project on Instant Terra
InstantTerra instantTerra = CreateInstantTerra();
Project project = instantTerra.GetProject();
Graph graph = project.GetGraph();
Graph::
GetNodeCount
()Returns the number of nodes on the Graph
Graph::
GetNode
(int
nodeIndex)Returns a Node from the Graph.
Warning
The parameter nodeIndex must be between 0 included and GetNodeCount() excluded.
Error − If the
nodeIndex is out of bound, the following error code will be
reported
ErrorCode::NodeIndexOutOfBound
.
Graph::
IsGraphAvailable
()Returns true if the Graph is available.
Copyright © 2022 · All Rights Reserved · Wysilab