How to communicate more than two arduino can bus shield? Multimasters

I am looking for help regarding a project, the can bus communication has the multimaster principle. Can anyone advise me with the programming code for the nodes to send and receive data.
The general guidelines only handle communication between 2 nodes, but how is the correct way to communicate more than two? There must be a bidirectional communication, I have developed several codes to establish this but through the analysis with the CAN BUS Analyzer and the oscilloscope fluctuates.