Subset Manually

Perform a manual query to slice a graph based on the attributes of its vertices or edges. You choose whether to subset the graph based on vertices or edges, then use the Manual Query Builder or free-text Query Workspace fields to construct a query based on that element's attributes. A single query can pertain only to vertices or only to edges, never both. You can perform separate, sequential vertex or edge queries.

When you perform a vertex query, all vertices whose attributes do not satisfy the query are dropped from the graph, in addition to all edges that touch them. When you perform an edge query, all edges whose attributes do not satisfy the criteria are dropped, but all vertices remain unless you enable the Eliminate disconnected vertices check box. Note that enabling this option drops all disconnected vertices whether or not they were disconnected before the edge query.

Review the Network Data Tips before you start work with a study's files.

To subset variables within a network data set by using a manually defined query:

  1. In the Data File page, click the Manual Query radio button near the top of the page.
  2. Use the Attribute Set drop-down list and select Vertex to subset by node or vertex values.
    Select Edge to subset by edge values.
  3. Build the first attribute selection value in the Manual Query Builder panel:
    1. Select a value in the Attributes list to assign values on which to subset.
    2. Use the Operators drop-down list to choose the function by which to define attributes for selection in this query.
    3. In the Values field, type the specific values to use for selection of the attribute.
    4. Click Add to Query to complete the attribute definition for selection.
      You see the query string for this attribute in the Query Workspace field.

    Alternatively, you can enter your query directly by typing it into the Query Workspace field.

  4. Continue to add selection values to your query by using the Manual Query Builder tools.
  5. To remove any verticies that do not connect with other data in the set, check the Eliminate disconnected vertices check box.
  6. When you complete construction of your query string, click Run to perform the query.
  7. Scroll to the bottom of the window, and when the query is processed you see a new entry in the Subset History panel that defines your query.

Continue to build a successive subset or download a subset.