5 Matching Annotations
  1. Feb 2025
    1. stream << grph.vertList[i];

      prints all the edges in the graph

    2. for (unsigned int i = 0; i < connects.size(); i++) { stream << "( " << vert.id << " , " << connects[i] << " ) \n"; }

      loops through the connections and prints the the vector key and one of the vertices that its connected to. prints with format "( {vert.id}, {vertConnectedTo.id} )"

    3. vector<int> connects = vert.getConnections();

      gets the vertices that vert is connected to perhaps?

    4. if (it->first == n) { return true; }

      see... theres no else..after the checking if it matches. and returns false outside of the for loop.

    5. else { return NULL;

      why does it return null if the node checked does not equal the key...woudlnt that only check if the first vertex is equal to the one we're looking for and if not, it returns null? is this a bug