Function getEdge

Synopsis

#include <Source/Falcor/Utils/Algorithm/DirectedGraph.h>

const Edge * getEdge(uint32_t edgeId)

Description

Get an edge

Source

Lines 174-182 in Source/Falcor/Utils/Algorithm/DirectedGraph.h.

const Edge* getEdge(uint32_t edgeId)
{
    if (doesEdgeExist(edgeId) == false)
    {
        logWarning("DirectGraph::getEdge() - edge ID doesn't exist");
        return nullptr;
    }
    return &mEdges[edgeId];
}





Add Discussion as Guest

Log in