---
title: "Wrap up"
description: "Analyze transaction patterns with G.V() and clean up your Aerospike Graph environment."
---

# Wrap up

> For the complete documentation index see: [llms.txt](https://aerospike.com/docs/llms.txt)
> 
> All documentation pages available in markdown.

This page shows you how to analyze patterns in your transaction graph and clean up your environment when finished.

## Analyze transaction patterns

Use G.V() to identify patterns in your transaction data.

1.  Find high-degree vertices.
    
    Run a query to identify accounts with the most transactions:
    
    ```groovy
    g.V().hasLabel("Account")
    
      .order().by(bothE("Transaction").count(), desc)
    
      .limit(5)
    ```
    
    ```json
    [ {
    
      "id" : -1020,
    
      "label" : "Account",
    
      "properties" : {
    
        "accountId" : "A5",
    
        "balance" : 6000
    
      }
    
    },
    
    ...
    
    ]
    ```
    
    Expected result
    
    **Verify:** The Results tab shows the 5 accounts ordered by transaction count, with A5 having the most transactions.
    
2.  Visualize transaction flow between accounts.
    
    Run a query that shows accounts connected by transactions:
    
    ```groovy
    g.V().hasLabel("Account").outE("Transaction").inV().path()
    ```
    
    Click the **Graph** tab to see the visualization. This path query returns the source account, the Transaction edge, and the destination account for each transaction.
    
    **Verify:** The Graph tab shows all 5 accounts connected by Transaction edges, revealing the flow of transactions across the network.
    

## Clean up

When you finish exploring, clean up your environment.

1.  Close the G.V() application.
    
2.  Stop the Docker containers.
    
    Navigate to the `aerospike-graph` repository root and stop the services:
    
    Terminal window
    
    ```shell
    docker compose down
    ```
    
    ```plaintext
    [+] Running 3/3
    
     ✔ Container asgraph-zipkin             Removed
    
     ✔ Container aerospike-graph-service    Removed
    
     ✔ Container aerospike-db               Removed
    
     ✔ Network asgraph_net                  Removed
    ```
    
    Expected result
    
    **Verify:** All containers stop and the network is removed.
    

::: note
Stopping the Docker containers removes all graph data since the example uses an in-memory configuration. To persist data between sessions, configure Aerospike Database with a persistent storage volume.
:::

You have completed the G.V() visualization tutorial. You connected to AGS, ran queries, and explored your transaction graph interactively. For more information about G.V() features, see the [G.V() documentation](https://docs.gdotv.com/).

::: undefined
-   I’ve analyzed transaction patterns in the graph.
-   I’ve cleaned up and shut down the environment.
:::

Share

Congratulations on completing this tutorial! Share your achievement with the world and let everyone know about your newly acquired skills.

[](https://www.linkedin.com/feed/?shareActive&mini=true&text=Just%20visualized%20my%20Aerospike%20Graph%20with%20G.V\(\)!%20%F0%9F%93%8A%F0%9F%94%97%0A%0AConnected%20to%20AGS%2C%20ran%20Gremlin%20queries%2C%20and%20explored%20transaction%20relationships%20visually.%20Graph%20databases%20make%20so%20much%20more%20sense%20when%20you%20can%20see%20the%20connections.%0A%0A%23AerospikeGraph%20%23GraphVisualization%20%23Gremlin%20%23GDotV%20%23DevTools%0A%0Ahttps%3A%2F%2Faerospike.com%2Fdocs%2Fgraph%2Fvisualize-your-graph-with-gdotv "Post to LinkedIn")[](https://bsky.app/intent/compose?text=Just%20visualized%20my%20Aerospike%20Graph%20with%20G.V\(\)!%20%F0%9F%93%8A%F0%9F%94%97%0A%0AConnected%20to%20AGS%2C%20ran%20Gremlin%20queries%2C%20and%20explored%20transaction%20relationships%20visually.%20Graph%20databases%20make%20so%20much%20more%20sense%20when%20you%20can%20see%20the%20connections.%0A%0A%23AerospikeGraph%20%23GraphVisualization%20%23Gremlin%20%23GDotV%20%23DevTools%0A%0Ahttps%3A%2F%2Faerospike.com%2Fdocs%2Fgraph%2Fvisualize-your-graph-with-gdotv "Post to BlueSky")[](https://twitter.com/intent/tweet?text=Just%20visualized%20my%20Aerospike%20Graph%20with%20G.V\(\)!%20%F0%9F%93%8A%F0%9F%94%97%0A%0AConnected%20to%20AGS%2C%20ran%20Gremlin%20queries%2C%20and%20explored%20transaction%20relationships%20visually.%20Graph%20databases%20make%20so%20much%20more%20sense%20when%20you%20can%20see%20the%20connections.%0A%0A%23AerospikeGraph%20%23GraphVisualization%20%23Gremlin%20%23GDotV%20%23DevTools%0A%0Ahttps%3A%2F%2Faerospike.com%2Fdocs%2Fgraph%2Fvisualize-your-graph-with-gdotv "Post to Twitter")

::: undefined
-   To learn about loading data at scale, see the [Data loading overview page](https://aerospike.com/docs/graph/load/overview).
    
-   To explore additional query patterns, see the [Query usage page](https://aerospike.com/docs/graph/develop/query/basics).
    
-   To secure your graph deployment, see the [TLS overview page](https://aerospike.com/docs/graph/manage/security/tls).
:::

[Previous  
Run and visualize queries](https://aerospike.com/docs/graph/visualize-your-graph-with-gdotv/step/2/part/0/run-queries)