Smrf.NodeXL.ExcelTemplate.DynamicFilterHandler.EdgeCanBeMadeVisible C# (CSharp) Method

EdgeCanBeMadeVisible() private static method

private static EdgeCanBeMadeVisible ( Object oEdge, HashSet oFilteredEdgeIDs, HashSet oFilteredVertexIDs ) : System.Boolean
oEdge Object
oFilteredEdgeIDs HashSet
oFilteredVertexIDs HashSet
return System.Boolean
    EdgeCanBeMadeVisible
    (
        Object oEdge,
        HashSet<Int32> oFilteredEdgeIDs,
        HashSet<Int32> oFilteredVertexIDs
    )
    {
        Debug.Assert(oEdge != null);
        Debug.Assert(oFilteredEdgeIDs != null);
        Debug.Assert(oFilteredVertexIDs != null);

        // Don't make the edge visible if either of its vertices was filtered
        // by a vertex filter.

        IVertex [] aoVertices = ( (IEdge)oEdge ).Vertices;

        return (
            !oFilteredVertexIDs.Contains(aoVertices[0].ID)
            &&
            !oFilteredVertexIDs.Contains(aoVertices[1].ID)
            );
    }