private static int BuildEdgeWeight(XOVertex source, XOVertex target) { /* if (source.ModuleName == target.ModuleName) return 100; if (source.Product == target.Product) return 5; if (source.ProductArea == target.ProductArea) return 5;*/ return 1; }
private static string BuildEdgeRelationshipType(XOVertex source, XOVertex target) { if (source.ModuleName == target.ModuleName) return "Module Relationship"; if (source.Product == target.Product) return "Product Relationship"; if (source.ProductArea == target.ProductArea) return "ProductArea Relationship"; return "Other Relationship"; }
private static string BuildEdgeInheritanceType(XOVertex source, XOVertex target) { if (source.ModuleName == target.ModuleName) return "Module Inheritance"; if (source.Product == target.Product) return "Product Inheritance"; if (source.ProductArea == target.ProductArea) return "ProductArea Inheritance"; return "Other Inharitance"; }
private static string BuildEdgeRelationshipColor(XOVertex source, XOVertex target) { if (source.ModuleName == target.ModuleName) return "#333333"; if (source.Product == target.Product) return "#737373"; if (source.ProductArea == target.ProductArea) return "#a6a6a6"; return "#e6e6e6"; }
private static string BuildEdgeInheritanceColor(XOVertex source, XOVertex target) { if (source.ModuleName == target.ModuleName) return "#ffff00"; if (source.Product == target.Product) return "#ffff66"; if (source.ProductArea == target.ProductArea) return "#ffff99"; return "#ffffcc"; }