Advertisement
Guest User

Untitled

a guest
May 30th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. template <class T, class W>
  2. bool GraphAsLists<T, W>::isStrong(){
  3. LinkedNode<T, W>* ptr = start;
  4. for (int i = 0; i < this->nodeNum; i++)
  5. {
  6. LinkedNode<T, W>* ptr1 = start;
  7. while (ptr1 != nullptr)
  8. {
  9. Edge<T, W>* pot = findEdge(ptr->node, ptr1->node);
  10. for (int j = 0; j < nodeNum - i; j++)
  11. {
  12. if (pot == nullptr)
  13. return false;
  14. pot = findEdge(ptr->node,pot->dest)
  15. }
  16. ptr1 = ptr1->next;
  17. }
  18. ptr = ptr->next;
  19. }
  20. return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement