-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or requestpriorityShould deal with this ASAPShould deal with this ASAP
Description
Edge type for step etc. is not exposed in C API.
EdgeSet is using intedge, which is 'lightweight', probably for performance. If performance isn't too bad, include an edgeset with cost type stored. Doesn't need to be returned with graph, but should act like a custom attribute or energy expenditure for query on an edge id.
- Expose API for Getting Edge data
C_INTERFACE GetEdgeCost( - Follow similar style for energyexpenditure to add custom edge attributes
dhart/src/Cinterface/spatialstructures_C.cpp
Line 395 in 4532b54
g->AddEdges(result, AlgorithmCostTitle(COST_ALG_KEY::CROSS_SLOPE)); - Add method or overload for getting step type after the graph generator. Either add a toggle for the edge type to be recorded or overload with new method
STEP step_type; ///< Step required to traverse this edge \see STEP for info on every step type. - create edge struct for interfaces. mimic node example
class NodeStruct(ctypes.Structure):
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpriorityShould deal with this ASAPShould deal with this ASAP