org.apache.tinkerpop.gremlin.structure.util

## Interface Host

- All Known Subinterfaces:
    Graph, Vertex
  All Known Implementing Classes:
    ComputerGraph, ComputerGraph.ComputerAdjacentVertex, ComputerGraph.ComputerVertex, DetachedVertex, EmptyGraph, HadoopGraph, HadoopVertex, Neo4jGraph, Neo4jVertex, ReferenceVertex, RemoteGraph, StarGraph, StarGraph.StarAdjacentVertex, StarGraph.StarVertex, TinkerGraph, TinkerVertex

      public interface Host

  A marker interface that identifies an object as something that an `Attachable` can connect to.
  Author:
    Stephen Mallette (http://stephen.genoprime.com)

- - ### Method Summary

    All Methods Static Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Vertex` | `getHostingVertex(Object object)` Extracts the `Vertex` that is holding the specified object.

- - ### Method Detail

    - #### getHostingVertex

          static Vertex getHostingVertex(Object object)

      Extracts the `Vertex` that is holding the specified object.
      Throws:
        `IllegalStateException` - if the object is not a graph element type

Copyright © 2013–2020 Apache Software Foundation. All rights reserved.