public static IndexEdge listFind(EdgesType edges, VertexKey key) { foreach (IndexEdge ele in edges) { if (ele.targetID == key) { return(ele); } } return(null); }
/// <summary> /// Get controls related to specified control /// </summary> /// <param name="ctrl">Original control</param> /// <param name="resultType">Type of resulting related controls</param> /// <param name="edgesType">Optional edge controls type</param> public abstract List<IGraphControl> GetRelatedControls(IGraphControl ctrl, GraphControlType resultType = GraphControlType.VertexAndEdge, EdgesType edgesType = EdgesType.Out);
/// <summary> /// Generates and displays edges for specified vertex /// </summary> /// <param name="vc">Vertex control</param> /// <param name="edgeType">Type of edges to display</param> /// <param name="defaultVisibility">Default edge visibility on layout</param> public abstract void GenerateEdgesForVertex(VertexControl vc, EdgesType edgeType, Visibility defaultVisibility = Visibility.Visible);
public static void SetHighlightEdges(DependencyObject obj, EdgesType value) { obj.SetValue(HighlightEdgesProperty, value); }
/// <summary> /// Get controls related to specified control /// </summary> /// <param name="ctrl">Original control</param> /// <param name="resultType">Type of resulting related controls</param> /// <param name="edgesType">Optional edge controls type</param> public abstract List <IGraphControl> GetRelatedControls(IGraphControl ctrl, GraphControlType resultType = GraphControlType.VertexAndEdge, EdgesType edgesType = EdgesType.Out);
/// <summary> /// Generates and displays edges for specified vertex /// </summary> /// <param name="vc">Vertex control</param> /// <param name="edgeType">Type of edges to display</param> /// <param name="defaultVisibility">Default edge visibility on layout</param> public virtual void GenerateEdgesForVertex(VertexControl vc, EdgesType edgeType, Visibility defaultVisibility = System.Windows.Visibility.Visible) { }
/// <summary> /// Get controls related to specified control /// </summary> /// <param name="vc">Original control</param> /// <param name="resultType">Type of resulting related controls</param> /// <param name="edgesType">Optional edge controls type</param> public virtual List <IGraphControl> GetRelatedControls(IGraphControl ctrl, GraphControlType resultType = GraphControlType.VertexAndEdge, EdgesType edgesType = EdgesType.Out) { return(null); }