The self signed ones are the root nodes, which are generally drawn on top (i.e. the tree or trees are bottom up). You can distinguish them by looking at entries where the subject is also the issuer (J and K, in other words).
After that you simply draw edges from the root nodes to the underlying nodes. So in the end you should have a branch or chain going downwards from J to S and from S to M, and finally from M to E.
F and N don't seem to have been signed by any entity, which probably means they just form partial trees. In principle it is possible to use a trusted public key instead of a certificate. Generally public keys / certificates should be signed by some entity though.