This feature is currently under development. But for sure, in the future, you will be seeing more such robust and effective features.
For now, you can follow the following raw-code structure to put networkx graph into the apache-age database and then visualize it on age-viewer.
#import apache-age python driver and networkx
from apache-age import GraphDatabase
import networkx as nx
#connect to the database
driver = GraphDatabase.driver(**xyz**->argument to connect to age database**)
query = "
SELECT * FROM cypher('graph_name', $$
MATCH p = (actor {name: 'Willam Defoe'})-[:ACTED_IN*2]-(co_actor)
RETURN relationships(p)
$$) as (r agtype);"
# run the query
result = driver.run(query)
# iterate through the result
# find the nodes and edges from result
# and add them to the nx.graph
# This bit doesn't work
G = nx.Graph(result)
Note: Code is not the executable, I have provided just the raw-structure.