# How come my keyframes don't show up in graph editor?

I am using a Python script to generate keyframes for materials(changing the strength of emission node over time). I use the same script to set up keyframes for material A and material B. I can see keyframes for both material in NLA editor but only keyframes for material A show up in the Graph editor. Did anyone have the save problem? Is it a bug or did I do anything wrong? Thanks for your replies in advance.

With the cursor button highlighted, only selected items will be shown, for a node tree this means the node that has keyframed values needs to be selected. As you are creating them by script you can set the select property of each node as you create them.
bpy.data.materials['Material'].node_tree.nodes['Emission'].select=True