Skip to content

Node attribute format #122

@ag1805x

Description

@ag1805x

Is there any specific format to set the node attributes for calculating the kernels? In my network, I may have multiple node attributes for each node. How to set them correctly? I usually set them as:

node_attr = {'A': {'attr1': 100, 'attr2': 10.65}, 'B': {'attr1': 200, 'attr2': 10.96}, …} 
nx.set_node_attributes(network, node_attr)

Now while converting the network list for Grakel what do I set for node_labels_tag if I need to use all of the attributes to calculate the kernels?

network_list_gk = gk.utils.graph_from_networkx(network_list, node_labels_tag = "attr1", as_Graph = True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions