docstr: Choose destination and connect it to the latest node.
  Add edges for both directions and update the graph.
docstr_tok: ["Choose","destination","and","connect","it","to","the","latest","node",".","Add","edges","for","both","directions","and","update","the","graph","."]
code: def choose_dest_and_update(self, a=None):
      """Choose destination and connect it to the latest node.
      Add edges for both directions and update the graph."""
  
      self.choose_dest_agent(self.g, a)
  
imports: from functools import partial
  import dgl
  import torch
  import torch.nn
  import torch.nn.functional
  from torch.distributions import Bernoulli, Categorical
label_desc: Use image node_id 7 for calling the DGMG obj's underlying member method code with example usage: obj.choose_dest_and_update(a) without return types