Skip to content

Error in remove_edge! that arises when plotting #7

@dlcole3

Description

@dlcole3

It looks like there is an error in remove_edge! that results in an error probably from trying to build the adjacency matrix. Probably ne is not being updated properly Below is an MWE.

using PlasmoData, DataGraphPlots, Graphs

random_matrix = rand(12, 12)
matrix_graph = matrix_to_graph(random_matrix, diagonal = true);
set_matrix_node_positions!(matrix_graph, random_matrix)

remove_edge!(matrix_graph, (2, 11), (1, 12))
remove_edge!(matrix_graph, (1, 11), (2, 12))

mat_graph_plot = plot_graph(
    matrix_graph, 
    node_z = get_node_data(matrix_graph, "weight"), 
    xdim = 400, 
    ydim = 400, 
    legend = true,
    nodesize = 8,
    linewidth = 3
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions