GraphModel.cs 519 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. namespace IntelligentProjectAnalyzer.Editor.Graphing
  4. {
  5. [Serializable]
  6. public class SerializableGraph
  7. {
  8. public List<GraphNode> Nodes = new();
  9. public List<GraphLink> Links = new();
  10. }
  11. [Serializable]
  12. public class GraphNode
  13. {
  14. public string Guid;
  15. public string Path;
  16. public string Type;
  17. }
  18. [Serializable]
  19. public class GraphLink
  20. {
  21. public int Source;
  22. public int Target;
  23. }
  24. }