‹›그래프와 네트워크동위 원소 붕괴 네트워크 플롯
새로운 RelationGraph 함수를 사용하여 동위 원소 붕괴의 네트워크를 구축합니다.
전체 Wolfram 언어 입력 표시하기
DaughterNuclides[s_List] :=
DeleteCases[
Union[Apply[Join,
Map[IsotopeData[#, "DaughterNuclides"] &,
DeleteCases[s, _Missing]]]], _Missing];
ReachableNuclides[s_List] :=
FixedPoint[Union[Join[#, DaughterNuclides[#]]] &, s];
verts = ReachableNuclides[{"Uranium235"}];
vsym = IsotopeData[#, "Symbol"] & /@ verts;
opts = {VertexLabels ->
Thread[verts -> (Placed[#, Center] & /@ vsym)],
PlotTheme -> "ClassicDiagram", VertexSize -> {.5, .3}};
DaughterNuclidesQ[s1_,
s2_] := (s1 =!= s2 && MemberQ[DaughterNuclides[{s1}], s2]);
RelationGraph[DaughterNuclidesQ, verts, opts]