Vertex.cs 525 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Windows.Controls;
  3. using System.Windows.Media;
  4. using System.Windows.Shapes;
  5. namespace GraphDrawer
  6. {
  7. public class Vertex
  8. {
  9. public int X { get; set; }
  10. public int Y { get; set; }
  11. public int edgeCount { get; set; }
  12. public Vertex(int x, int y, int edgeCount)
  13. {
  14. X = x;
  15. Y = y;
  16. this.edgeCount = edgeCount;
  17. }
  18. public Vertex(int x, int y)
  19. {
  20. X = x;
  21. Y = y;
  22. }
  23. }
  24. }