Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. private void CheckRep() throws RuntimeException{
  2. for (Node n: nodes){
  3. if (n.getLabel() == null){
  4. throw new RuntimeException("Node label is null");
  5. }
  6. }
  7. for (Edge e: edges){
  8. if (e.getLabel() == null){
  9. throw new RuntimeException("Edge Label is null");
  10. }
  11. if (e.getStartNode() == null){
  12. throw new RuntimeException("Start Node is null");
  13. }
  14. if (e.getEndNode() == null){
  15. throw new RuntimeException("End Node is null");
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement