code: def test_vertex_query(self):
      df = pd.DataFrame(
          {
              "src": ["a", "c", "b", "d", "c", "e", "g", "f"],
              "dst": ["b", "b", "d", "c", "e", "g", "f", "e"],
          }
      )
      g = SGraph().add_edges(df, src_field="src", dst_field="dst")
  
      # basic check
      g2 = g.get_neighborhood(ids=["b"], radius=1, full_subgraph=False)
      out = g2.get_edges(format="dataframe")
      out.sort_values(by=["__src_id", "__dst_id"], axis=0, inplace=True)
      out.index = range(len(out))
  
      correct = pd.DataFrame.from_records(
          [("b", "d"), ("a", "b"), ("c", "b")],
          columns=["__src_id", "__dst_id"],
      )
      correct.sort_values(
          by=["__src_id", "__dst_id"], axis=0, inplace=True
      )
      correct.index = range(len(correct))
      assert_frame_equal(out, correct, check_dtype=False)
  
      # check larger radius, full subgraph, and multiple vertices
      g2 = g.get_neighborhood(
          ids=["a", "g"], radius=2, full_subgraph=True
      )
      out = g2.get_edges(format="dataframe")
      out.sort_values(by=["__src_id", "__dst_id"], axis=0, inplace=True)
      out.index = range(len(out))
  
      correct = pd.DataFrame.from_records(
          [
              ("a", "b"),
              ("b", "d"),
              ("c", "b"),
              ("c", "e"),
              ("d", "c"),
              ("e", "g"),
              ("f", "e"),
              ("g", "f"),
          ],
          columns=["__src_id", "__dst_id"],
      )
      correct.sort_values(
          by=["__src_id", "__dst_id"], axis=0, inplace=True
      )
      correct.index = range(len(correct))
      assert_frame_equal(out, correct, check_dtype=False)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from ..data_structures.sgraph import SGraph, Vertex, Edge, load_sgraph
  from ..data_structures.sframe import SFrame
  from .None import util
  import pandas
  from pandas.util.testing import assert_frame_equal
  import numpy
  import unittest
  import tempfile
  import json
  import os
  import sys
  import pytest
label_desc: Use image node_id 5 for calling the GraphTests obj's underlying member method code with example usage: obj.test_vertex_query() without return types