How to use the kmapper.plotlyviz.get_mapper_graph function in kmapper

To help you get started, we’ve selected a few kmapper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scikit-tda / kepler-mapper / test / test_plotly.py View on Github external
def test_plotly_graph(sc):
    edge_trace, node_trace = plotly_graph(get_mapper_graph(sc)[0])
    assert isinstance(edge_trace, dict)
    assert isinstance(node_trace, dict)
github scikit-tda / kepler-mapper / test / test_plotly.py View on Github external
def test_kepler_to_graph(sc):

    json_graph, mapper_summary, colorf_distribution = get_mapper_graph(sc)

    assert json.loads(json.dumps(json_graph)) == json_graph
    assert isinstance(mapper_summary, dict)
    assert isinstance(colorf_distribution, list)
github scikit-tda / kepler-mapper / test / test_plotly.py View on Github external
def test_kepler_to_graph_with_colorscale(sc):

    json_graph, mapper_summary, colorf_distribution = get_mapper_graph(sc, colorscale=default_colorscale)

    assert json.loads(json.dumps(json_graph)) == json_graph
    assert isinstance(mapper_summary, dict)
    assert isinstance(colorf_distribution, list)